package org.fnzn.service;

import org.apache.poi.ss.formula.functions.T;
import org.fnzn.bean.FnglCustomer;
import org.fnzn.bean.statisbean.StatisWhere;
import org.fnzn.bean.vo.User;
import org.fnzn.core.Page;
import org.fnzn.core.Result;

import java.util.List;

public interface FnglCustomerService {
    /**查询客户**/
    public Result findFnglCustomer(FnglCustomer fnglCustomer, Page page);
    /**查询客户资源池**/
    public Result getFnglCommonCustomer(FnglCustomer fnglCustomer,Page page);
    /**新增客户**/
    public Result insertFnglCustomer(FnglCustomer fnglCustomer);
    /**修改客户**/
    public Result updateFnglCustomer(FnglCustomer fnglCustomer);
    /**移交客户**/
    public Result transferFnglCustomer(FnglCustomer fnglCustomer,User user);
    /**删除客户**/
    public Result deleteFnglCustomer(String customerId);
    /**删除多个客户**/
    public Result deleteAllFnglCustomer(String Ids);
    /**根据客户手机号获取到客户姓名**/
    public Result getCustomer(String phone);
    /**根据销售人员id获取到其所有客户电话**/
    public Result getCustomerPhone(String staffId);
    /**获取到各个楼盘的客户详情**/
    public Result getProjectCustomer(Page page);
    /**获取到已成交客户年龄段所占比例**/
    public Result getCustomerAge(Page page);
    /**已成交客户按照区域、职业、是否贷款统计情况**/
    public Result getTurnOverCustomer(Page page,StatisWhere statisWhere);
    /**未成交客户 -- 依据客户意向面积、户型和类型 推荐楼盘**/
    public Result getUnTurnOver(Page page);
    public FnglCustomer findBy(String property, Object value);
    public FnglCustomer findById(Object id);
    public int update(FnglCustomer fnglCustomer);
    /**获取指定数据报表**/
    public List<FnglCustomer> getFnglCustomerUser();
    /**导出客户数据**/
    Result exportFnglCustomer(FnglCustomer fnglCustomer);
    /**每日录入客户分析**/
    Result getEverydayCustomer(Page page,StatisWhere statisWhere);
}
